package biz.org.suyafei;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.suyafei.ShopApplication;
import org.suyafei.config.PayBeanConfig;
import org.suyafei.manager.ProductOrderManager;
import org.suyafei.model.ProductOrderDO;
import org.suyafei.utils.CommonUtil;

import java.io.IOException;
import java.security.PrivateKey;
import java.util.Map;

/**
 * @author 宿某人
 * @Date: 2022/02/06/4:09 下午
 * @Description:
 */
@SpringBootTest(classes = ShopApplication.class)
@Slf4j
@RunWith(SpringRunner.class)
public class BizGetPrivateKey {

    @Autowired
    private PayBeanConfig beanConfig;

    @Test
    public void testGetPrivateKey () throws IOException {
        PrivateKey privateKey = beanConfig.getPrivateKey();
        log.info("返回的对象{}",privateKey.getAlgorithm());
    }
}
